package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * 
* @ClassName: exchangeProducts 
* @Description: 兑换商品定义表
* @author eason
* @date 2016-11-28 21:36:08
*
 */
@Entity
@Table(name = "tb_xa_exchangeproducts")
@ApiModel(value="兑换商品定义表")
public class ExchangeProducts extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="商品名称,商品名称")
	private String productName;
	@ApiModelProperty(value="需要亲币数,需要亲币数")
	private String needCoins;//为了方便搜索,变成string类型
	@ApiModelProperty(value="商品图片,商品图片")
	private String productImg;
	@ApiModelProperty(value="库存,库存")
	private Integer inventory;
	@ApiModelProperty(value="已经兑换数量,已经兑换数量")
	private Integer exchangedNum;
	@ApiModelProperty(value="商品详情,商品详情")
	private String productIntro;
	@ApiModelProperty(value="兑换商品提供者,兑换商品提供者")
	private String productProvider;
		
	
	public void setProductName(String productName){
		this.productName=productName;
	}
	
	@Column(nullable=true,length=50)
	public String getProductName(){
		return productName;
	}
	public void setNeedCoins(String needCoins){
		this.needCoins=needCoins;
	}
	
	@Column(nullable=true,length=50)
	public String getNeedCoins(){
		return needCoins;
	}
	public void setProductImg(String productImg){
		this.productImg=productImg;
	}
	
	@Column(nullable=true,length=50)
	public String getProductImg(){
		return productImg;
	}
	public void setInventory(Integer inventory){
		this.inventory=inventory;
	}
	
	@Column(nullable=true,length=50)
	public Integer getInventory(){
		return inventory;
	}
	public void setExchangedNum(Integer exchangedNum){
		this.exchangedNum=exchangedNum;
	}
	
	@Column(nullable=true,length=50)
	public Integer getExchangedNum(){
		return exchangedNum;
	}
	public void setProductIntro(String productIntro){
		this.productIntro=productIntro;
	}
	
	@Column(nullable=true,length=5000,columnDefinition="MEDIUMTEXT")
	public String getProductIntro(){
		return productIntro;
	}
	public void setProductProvider(String productProvider){
		this.productProvider=productProvider;
	}
	
	@Column(nullable=true,length=50)
	public String getProductProvider(){
		return productProvider;
	}
		

}
